package com.shanglida.base;

import com.baidu.location.LocationClient;
import com.baidu.location.LocationClientOption;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.text.style.ClickableSpan;
import android.view.View;
import android.view.View.OnClickListener;

/**
 * @author liu
 * @deprecated 父类
 * @version 1.0
 * @date 2014-02-25 修改
 * @copyright 尚礼达信息科技有限公司
 */
public abstract class BaseActivity extends Activity implements OnClickListener {

	/**
	 * 初始化
	 */
	protected abstract void initView();

	/**
	 * 注册监听器
	 */
	protected abstract void initData();

	/**
	 * @author liu
	 * @deprecated 下划线类似链接
	 */
	public class IntentSpan extends ClickableSpan {
		private final OnClickListener listener;

		public IntentSpan(View.OnClickListener listener) {
			this.listener = listener;
		}

		@Override
		public void onClick(View view) {
			listener.onClick(view);
		}
	}

}
